 <html>
 <head>
 <script type="text/javascript" src="<?php echo MAIN_URL;?>js/coursesyllabusdetails.js"></script>
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script src="<?php echo MAIN_URL;?>js/easypaginate.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<?php echo MAIN_URL;?>css/style.css" type="text/css" rel="stylesheet">
<link href="<?php echo MAIN_URL;?>css/paging.css" type="text/css" rel="stylesheet">
<link rel="icon" type="image/ico" href="<?php echo MAIN_URL;?>images/favicon.ico"></link> 

    <link rel="stylesheet" href="<?php echo MAIN_URL;?>css/style1.css" type="text/css" />
	<script type="text/javascript" src="<?php echo MAIN_URL;?>js/jquery-1.3.1.min.js"></script>
	<script type="text/javascript" src="<?php echo MAIN_URL;?>js/jquery.tablesorter.js"></script>
	<script type="text/javascript" src="<?php echo MAIN_URL;?>js/jquery.tablesorter.pager.js"></script>
</head>
<body>
<?php

 if($user_asignments!=""){
	 $mainurl=MAIN_URL;
 $counter=1;
 echo'<table id="assignment_list" class="tablesorter"><thead><tr> 
        
	        <th align="left">S.No</th>
            <th align="left">Course Name</th>
            <th align="left">Chapter Name</th>
            <th align="left">Assignmet Name</th>
            <th align="left">Description</th>
			<th align="left">View Assignment</th>

            
		</tr></thead><tbody>';
foreach ($user_asignments->result() as $row)
            {


 echo  '<a href="#"><tr>
	        <td>'.$counter.'</td>
            <td>'.$row->Course.'</td>
			<td>'.$row->Chapter.'</td>
            <td>'.$row->AssignmentName.'</td>
            <td>'.$row->Description.'</td>
			<td>
		

					<div id="expand'.$counter.'">
					<form action="'.$mainurl.'index.php/loginsuccess/viewassquestions" method="post">
			<input type="hidden" name="assignmentid" id="assignmentid" value="'.$row->assignmentid.'">
			<input type="hidden" name="assignmentrowid" id="assignmentrowid" value="'.$row->id.'">
		 
                    <input type="submit" value="View Assignment" style="float:left; margin-top:1px;">
				 
                    </form>
					</div>
			 
			 
			 </td>
			 
       </tr></a>';

$counter++;
      }
	 echo'</tbody></table><br>';  
	  
	  }


else{

echo "<br><br><h3 class='heading'>No Assignment Pending</h4>";

}


?>
 
</body>
</html>
                   